<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/23
  Time: 11:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta property="lang" content="zh_CN">
    <title>言曌博客 | 分类目录</title>
    <link rel="shortcut icon" type="images/x-icon" href="/upload/2018/10/logo20181111185335360.png">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/pace.min.css">
    <link rel="stylesheet" href="css/adminlte.min.css">
    <link rel="stylesheet" href="css/_all-skins.min.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/loader.css">
    <link rel="stylesheet" href="css/jquery.toast.min.css">
    <link rel="stylesheet" href="css/fileinput.min.css">
    <link rel="stylesheet" href="css/owo.min.css">
    <link rel="stylesheet" href="css/pretty-checkbox.min.css">
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/owo.min.js"></script>
</head>
<body class="hold-transition sidebar-mini fixed skin-blue ">
<div class="wrapper">
    <!-- 顶部栏模块 -->
    <header class="main-header">
        <a href="/admin" class="logo">
            <span class="logo-mini"><b>S</b>S</span>
            <span class="logo-lg"><b>SE</b>NS</span>
        </a>
        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li><a href="/" title="跳转到前台" target="_blank"><i class="fa fa-location-arrow"></i></a></li>
                    <li class="dropdown messages-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-bell-o"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">
                                你有 0 条新评论
                            </li>
                            <li>
                                <ul class="menu">
                                </ul>
                            </li>
                            <li class="footer"><a href="/admin/comment?status=1">查看所有评论</a></li>
                        </ul>
                    </li>
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="picture/1927d92e4aa543c8a2c764b6d096c335.gif" class="user-image" alt="User Image">
                            <span class="hidden-xs">xhz199838</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="picture/1927d92e4aa543c8a2c764b6d096c335.gif" class="img-circle"
                                     alt="User Image">
                                <p>xhz199838</p>
                            </li>
                            <li class="user-footer">
                                <div class="pull-left"><a data-pjax="true" href="/admin/user/profile"
                                                          class="btn btn-default "><i class="fa fa-user"></i>个人资料</a>
                                </div>
                                <div class="pull-right"><a href="/admin/logOut" class="btn btn-default "><i
                                        class="fa fa-sign-out"></i>退出登录</a></div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- 菜单栏模块 -->
    <aside class="main-sidebar">
        <section class="sidebar">
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="picture/1927d92e4aa543c8a2c764b6d096c335.gif" class="img-circle"
                         style="width: 45px;height: 45px;" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>xhz199838</p>
                    <a href="/admin/user/profile"><i
                            class="fa fa-circle text-success"></i>个人资料</a>
                </div>
            </div>
            <form action="/search" method="get" target="_blank" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="keyword" class="form-control" placeholder="Search...">
                    <span class="input-group-btn">
<button type="submit" name="keyword" id="search-btn" target="_blank" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
                </div>
            </form>
            <ul class="sidebar-menu tree" data-widget="tree">
                <li class="header">HEADER</li>
                <li class="active"><a data-pjax="true" href="index.jsp"> <i class="fa fa-dashboard"></i> <span>仪表盘</span>
                </a></li>
                <li class="treeview"><a data-pjax="true" href="#"> <i class="fa fa-book"></i> <span>文章</span> <span
                        class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a>
                    <ul class="treeview-menu">
                        <li><a data-pjax="true" href="post.jsp"> <i class="fa fa-circle-o"></i>所有文章 </a></li>
                        <li><a data-pjax="true" href="postnew.jsp"> <i class="fa fa-circle-o"></i>写文章 </a></li>
                        <li><a data-pjax="true" href="category.jsp"> <i class="fa fa-circle-o"></i>分类目录 </a></li>
                        <li><a data-pjax="true" href="tag.jsp"> <i class="fa fa-circle-o"></i>标签 </a></li>
                    </ul>
                </li>
                <li><a data-pjax="true" href="attachment.jsp"> <i class="fa fa-picture-o"></i> <span>附件</span> </a>
                </li>
                <li><a data-pjax="true" href="comment.jsp"> <i class="fa fa-comment"></i> <span>评论</span> </a></li>
                <li class="treeview"><a data-pjax="true" href="#"> <i class="fa fa-user-o"></i> <span>用户</span> <span
                        class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a>
                    <ul class="treeview-menu">
                        <li><a data-pjax="true" href="userprofile.jsp"> <i class="fa fa-circle-o"></i>个人资料 </a></li>
                    </ul>
                </li>
            </ul>
        </section>
    </aside>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                分类目录
                <small></small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a data-pjax="true" href="/admin">
                        <i class="fa fa-dashboard"></i> 首页</a>
                </li>
                <li><a data-pjax="true" href="#">文章管理</a></li>
                <li class="active">分类目录</li>
            </ol>
        </section>
        <section class="content container-fluid">
            <div class="row">
                <div class="col-md-5">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">修改分类目录</h3>
                        </div>
                        <form action="/admin/category/save" method="post" role="form" id="cateForm">
                            <div class="box-body">
                                <div class="form-group">
                                    <label for="cateName">名称</label>
                                    <input type="text" class="form-control" id="cateName" name="cateName"
                                           placeholder="">
                                    <small>页面上所显示的名称</small>
                                </div>
                                <div class="form-group">
                                    <label for="cateUrl">路径名称</label>
                                    <input type="text" class="form-control" id="cateUrl" name="cateUrl"
                                           placeholder="">
                                    <small>*这是文章路径上显示的名称，最好为英文</small>
                                </div>
                                <div class="form-group">
                                    <label for="catePid">父节点</label>
                                    <select class="form-control" id="catePid" name="catePid">
                                        <option value="0">无父节点</option>
                                        <option value="138">Java 开发</option>
                                        <option value="109">——Java 基础</option>
                                        <option value="155">——JavaWeb</option>
                                        <option value="230">————模板引擎</option>
                                        <option value="193">——java 进阶</option>
                                        <option value="229">————Java 源码</option>
                                        <option value="242">————多线程并发编程</option>
                                        <option value="213">——备战面试</option>
                                        <option value="243">——工具类</option>
                                        <option value="245">——技术架构</option>
                                        <option value="275">框架与实战</option>
                                        <option value="24">——异常与报错</option>
                                        <option value="284">——安全框架</option>
                                        <option value="285">————Shiro</option>
                                        <option value="286">————Spring Security</option>
                                        <option value="271">——微服务和分布式</option>
                                        <option value="65">——开发利器</option>
                                        <option value="179">——Spring 家族</option>
                                        <option value="250">————SpringBoot教程</option>
                                        <option value="251">————SpringCloud</option>
                                        <option value="228">——ORM 框架</option>
                                        <option value="232">——搜索引擎框架</option>
                                        <option value="233">——缓存技术</option>
                                        <option value="244">——第三方依赖</option>
                                        <option value="198">计算机科学</option>
                                        <option value="200">——数据结构和算法</option>
                                        <option value="201">——操作系统</option>
                                        <option value="202">——数据库</option>
                                        <option value="203">——计算机网络</option>
                                        <option value="246">——编译原理</option>
                                        <option value="236">其他技术</option>
                                        <option value="85">——网站建设</option>
                                        <option value="16">————Apache/Nginx</option>
                                        <option value="15">————Linux</option>
                                        <option value="10">————WordPress</option>
                                        <option value="86">————服务器与主机</option>
                                        <option value="89">————网站优化</option>
                                        <option value="3">——HTML/CSS</option>
                                        <option value="4">——JavaScript/jQuery</option>
                                        <option value="63">——PHP</option>
                                        <option value="237">——C</option>
                                        <option value="241">——前端组件</option>
                                        <option value="276">资源与知识</option>
                                        <option value="13">——视频收藏</option>
                                        <option value="23">——文章杂烩</option>
                                        <option value="59">——资源分享</option>
                                        <option value="110">——上网百科</option>
                                        <option value="182">——娱乐游戏</option>
                                        <option value="1">未分类</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="cateSort">排序编号</label>
                                    <input type="text" class="form-control" id="cateSort" name="cateSort" value="1">
                                </div>
                                <div class="form-group">
                                    <label for="cateDesc"
                                           class="control-label">描述</label>
                                    <textarea class="form-control" rows="3" id="cateDesc" name="cateDesc"
                                              style="resize: none"></textarea>
                                    <small>*添加描述，部分主题可显示</small>
                                </div>
                            </div>
                            <div class="box-footer">
                                <button type="button"
                                        class="btn btn-primary btn-sm "
                                        onclick="saveCategory()">确定添加
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-md-7">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">所有分类目录</h3>
                        </div>
                        <div class="box-body table-responsive">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th>名称</th>
                                    <th>路径</th>
                                    <th>文章数</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Java 开发</td>
                                    <td><a href="/category/javadev"
                                           target="_blank">javadev</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">3</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=138"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(138)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——Java 基础</td>
                                    <td><a href="/category/java-basic"
                                           target="_blank">java-basic</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">101</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=109"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(109)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——JavaWeb</td>
                                    <td><a href="/category/java-web"
                                           target="_blank">java-web</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">36</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=155"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(155)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————模板引擎</td>
                                    <td><a href="/category/templates"
                                           target="_blank">templates</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">6</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=230"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(230)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——java 进阶</td>
                                    <td><a href="/category/core-java"
                                           target="_blank">core-java</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">14</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=193"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(193)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————Java 源码</td>
                                    <td><a href="/category/java-code"
                                           target="_blank">java-code</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">6</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=229"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(229)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————多线程并发编程</td>
                                    <td><a href="/category/multi-thread"
                                           target="_blank">multi-thread</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">7</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=242"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(242)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——备战面试</td>
                                    <td><a href="/category/interview"
                                           target="_blank">interview</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">11</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=213"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(213)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——工具类</td>
                                    <td><a href="/category/util"
                                           target="_blank">util</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">14</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=243"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(243)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——技术架构</td>
                                    <td><a href="/category/jiagou"
                                           target="_blank">jiagou</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">3</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=245"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(245)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>框架与实战</td>
                                    <td><a href="/category/back-frameworks"
                                           target="_blank">back-frameworks</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=275"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(275)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——异常与报错</td>
                                    <td><a href="/category/trouble-solve"
                                           target="_blank">trouble-solve</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">82</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=24"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(24)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——安全框架</td>
                                    <td><a href="/category/security-framework"
                                           target="_blank">security-framework</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=284"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(284)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————Shiro</td>
                                    <td><a href="/category/shiro"
                                           target="_blank">shiro</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">4</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=285"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(285)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————Spring Security</td>
                                    <td><a href="/category/spring-security"
                                           target="_blank">spring-security</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=286"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(286)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——微服务和分布式</td>
                                    <td><a href="/category/micro-service"
                                           target="_blank">micro-service</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">1</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=271"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(271)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——开发利器</td>
                                    <td><a href="/category/ide"
                                           target="_blank">ide</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">52</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=65"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(65)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——Spring 家族</td>
                                    <td><a href="/category/spring"
                                           target="_blank">spring</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">92</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=179"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(179)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————SpringBoot教程</td>
                                    <td><a href="/category/springboot"
                                           target="_blank">springboot</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">17</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=250"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(250)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————SpringCloud</td>
                                    <td><a href="/category/springcloud"
                                           target="_blank">springcloud</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">2</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=251"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(251)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——ORM 框架</td>
                                    <td><a href="/category/orm"
                                           target="_blank">orm</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">33</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=228"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(228)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——搜索引擎框架</td>
                                    <td><a href="/category/search-engine"
                                           target="_blank">search-engine</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">6</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=232"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(232)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——缓存技术</td>
                                    <td><a href="/category/cache"
                                           target="_blank">cache</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">11</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=233"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(233)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——第三方依赖</td>
                                    <td><a href="/category/dependency"
                                           target="_blank">dependency</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">13</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=244"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(244)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>计算机科学</td>
                                    <td><a href="/category/computer-science"
                                           target="_blank">computer-science</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=198"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(198)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——数据结构和算法</td>
                                    <td><a href="/category/data-structure-and-algorithm"
                                           target="_blank">data-structure-and-algorithm</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">17</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=200"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(200)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——操作系统</td>
                                    <td><a href="/category/operating-system"
                                           target="_blank">operating-system</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">6</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=201"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(201)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——数据库</td>
                                    <td><a href="/category/database-computer-science"
                                           target="_blank">database-computer-science</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">26</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=202"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(202)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——计算机网络</td>
                                    <td><a href="/category/computer-network"
                                           target="_blank">computer-network</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">29</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=203"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(203)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——编译原理</td>
                                    <td><a href="/category/compile"
                                           target="_blank">compile</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">5</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=246"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(246)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>其他技术</td>
                                    <td><a href="/category/other-tech"
                                           target="_blank">other-tech</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=236"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(236)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——网站建设</td>
                                    <td><a href="/category/web-build"
                                           target="_blank">web-build</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=85"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(85)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————Apache/Nginx</td>
                                    <td><a href="/category/webserver"
                                           target="_blank">webserver</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">8</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=16"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(16)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————Linux</td>
                                    <td><a href="/category/os"
                                           target="_blank">os</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">14</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=15"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(15)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————WordPress</td>
                                    <td><a href="/category/wordpress"
                                           target="_blank">wordpress</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">67</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=10"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(10)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————服务器与主机</td>
                                    <td><a href="/category/server-host"
                                           target="_blank">server-host</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">17</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=86"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(86)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>————网站优化</td>
                                    <td><a href="/category/web-optimization"
                                           target="_blank">web-optimization</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">19</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=89"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(89)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——HTML/CSS</td>
                                    <td><a href="/category/html-css"
                                           target="_blank">html-css</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">23</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=3"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(3)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——JavaScript/jQuery</td>
                                    <td><a href="/category/js"
                                           target="_blank">js</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">36</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=4"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(4)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——PHP</td>
                                    <td><a href="/category/php-notes"
                                           target="_blank">php-notes</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">17</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=63"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(63)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——C</td>
                                    <td><a href="/category/c"
                                           target="_blank">c</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">7</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=237"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(237)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——前端组件</td>
                                    <td><a href="/category/front-end-frame"
                                           target="_blank">front-end-frame</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">14</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=241"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(241)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>资源与知识</td>
                                    <td><a href="/category/knowledge"
                                           target="_blank">knowledge</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">0</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=276"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(276)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——视频收藏</td>
                                    <td><a href="/category/vedio"
                                           target="_blank">vedio</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">24</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=13"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(13)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——文章杂烩</td>
                                    <td><a href="/category/specials"
                                           target="_blank">specials</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">59</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=23"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(23)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——资源分享</td>
                                    <td><a href="/category/resource-share"
                                           target="_blank">resource-share</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">21</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=59"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(59)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——上网百科</td>
                                    <td><a href="/category/surf-skills"
                                           target="_blank">surf-skills</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">10</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=110"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(110)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>——娱乐游戏</td>
                                    <td><a href="/category/game"
                                           target="_blank">game</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">3</span>
                                    </td>
                                    <td>
                                        <a data-pjax="true"
                                           href="/admin/category/edit?cateId=182"
                                           class="btn btn-primary btn-xs ">修改</a>
                                        <button class="btn btn-danger btn-xs delete-category"
                                                onclick="removeIt(182)">永久删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>未分类</td>
                                    <td><a href="/category/default"
                                           target="_blank">default</a></td>
                                    <td>
<span class="label"
      style="background-color: #d6cdcd;">9</span>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <script>
            function saveCategory() {
                $.ajax({
                    type: 'POST',
                    url: '/admin/category/save',
                    async: false,
                    data: $("#cateForm").serialize(),
                    success: function (data) {
                        if (data.code == 0) {
                            showMsg(data.msg, "error", 2000);
                        } else {
                            showMsgAndRedirect(data.msg, "success", 2000, "/admin/category");
                        }
                    }
                });
            };

            function removeIt(cateId) {
                layer.confirm('你确定要删除？', function (index) {
                    $.ajax({
                        type: 'GET',
                        url: '/admin/category/remove',
                        async: false,
                        data: {
                            'cateId': cateId
                        },
                        success: function (data) {
                            if (data.code == 0) {
                                showMsg(data.msg, "error", 2000);
                            } else {
                                showMsgAndRedirect(data.msg, "success", 2000, "/admin/category");
                            }
                        }
                    });
                    layer.close(index);
                });
            }
        </script>
    </div>
    <footer class="main-footer">
        <div class="pull-right hidden-xs"><a target="_blank" href="#">1.0.0</a></div>
        Thanks for using <strong><a data-pjax="true" href="/admin/sens">SENS</a>.</strong>
    </footer>
</div>
<script src="js/jquery.pjax.js"></script>
<script src="js/pace.min.js"></script>
<script src="js/adminlte.min.js"></script>
<script src="js/jquery.toast.min.js"></script>
<script src="js/layer.js"></script>
<script src="js/fileinput.min.js"></script>
<script src="js/froala_editor.pkgd.min.js"></script>
<script src="js/zh_cn.js"></script>
<script src="js/image_manager.min.js"></script>
<script src="js/codemirror-4.inline-attachment.min.js"></script>
<script src="js/jquery.tag-editor.min.js"></script>
<script src="js/jquery.caret.min.js"></script>
<script src="js/jquery.hz2py-min.js"></script>
<script src="js/zh.min.js"></script>
<script src="js/app.js"></script>
<script> Pace.options = {restartOnRequestAfter: false};
$(document).ajaxStart(function () {
    Pace.restart();
});
$(document).pjax('a[data-pjax=true]', '.content-wrapper', {fragment: '.content-wrapper', timeout: 8000});
var heading = "提示"; </script>
</body>
</html>